package close.mazegame.entity.mob.behaviour;

import java.awt.Point;

import close.mazegame.entity.mob.AITank;

public class FleeBehaviour extends TargetBehaviour {

	public FleeBehaviour(AITank mob) {
		super(mob);
	}

	@Override
	public void setTarget() {
		Point pos = new Point((int)(mob.getX()), ((int)mob.getY()));
		target = mob.getPathfinder().getFurther(pos, true);
	}

}
